// AppLayout.scss - 应用布局样式

// 应用容器
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: var(--bg-primary);
}

// 头部区域
.app-header {
  flex-shrink: 0;
  height: 32px;
  background-color: #f3f3f3;
}

// 主体内容区域
.app-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  min-height: 0;
  background-color: var(--bg-primary);
}

// 全屏主内容区域
.app-main-full {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-primary);
  height: 100%;
  width: 100%;
  position: relative;
  min-height: 0;
}

// 底部状态栏
.app-status-bar {
  flex-shrink: 0;
  height: 20px;
  background-color: #f3f3f3;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  color: var(--text-secondary);
  position: relative;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

.status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.route-info {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-weight: 500;
}

// 移除遮罩层样式的z-index设置
:global(.n-modal-mask) {
  /* 移除 z-index: 9999 !important; */
}

:global(.n-dialog-mask) {
  /* 移除 z-index: 9999 !important; */
}

:global(.n-drawer-mask) {
  /* 移除 z-index: 9999 !important; */
}

:global(.n-notification-container) {
  /* 移除 z-index: 10000 !important; */
}

:global(.n-message-container) {
  /* 移除 z-index: 10000 !important; */
}

// 应用布局样式
.app-layout {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main-layout {
  flex: 1;
  min-height: 0;
}

.app-sidebar {
  height: 100%;
  overflow: hidden;
}

.app-content {
  height: 100%;
  overflow: hidden;
}

.content-wrapper {
  height: 100%;
  overflow: hidden;
}

.app-footer {
  flex-shrink: 0;
}